package net.dlz.example.controller;

import net.dlz.example.domain.Street;
import net.dlz.example.service.StreetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

@Controller
@RequestMapping("/Statistics")
public class StatisticsController {
    @Autowired
    private StreetService streetService;

    @RequestMapping(value = "/search",method = RequestMethod.GET)
    public String streetPage(Model model){
//        List<Street> streets = streetService.listStreet();
//        model.addAttribute("streets",streets);
        return "doorData";
    }
}
